#include "CMaker.h"

#include "Enum.h"

#include "Utility.h"
#include "Animation.h"
#include "SpriteMaker.h"

int const BACKGROUND_X = 512;
int const BACKGROUND_Y = -384;

CMaker::CMaker(void)
{
}

CMaker::~CMaker(void)
{
	SharedSpriteMaker.getSprite(eBackgroundTag_Maker)->setPosition(-10000, 10000, eBackgroundTag_Maker);
}

void CMaker::put(void)
{
	SharedSpriteMaker.getSprite(eBackgroundTag_Maker)->setPosition(BACKGROUND_X, BACKGROUND_Y, eBackgroundTag_Maker);
}

void CMaker::setKeyBoardState(const int _nState, const int _nKey)
{
}

void CMaker::setMouseState(const int _nState, const int _nX, const int _nY)
{
	m_nMouseState = _nState;
	mouseCheck();
}

int CMaker::run(void)
{
	if(false == m_nSceneState)
	{
		return eScene_Main;
	}
	return eScene_Maker;
}

void CMaker::mouseCheck(void)
{
	if(eMouseLeftButton_Release == m_nMouseState || eMouseRightButton_Release == m_nMouseState)
	{
		m_nSceneState = false;
	}
}